{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Test your environment"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Pytorch with GPU support.\n"
     ]
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAPgAAAD8CAYAAABaQGkdAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDIuMS4wLCBo\ndHRwOi8vbWF0cGxvdGxpYi5vcmcvpW3flQAAC6xJREFUeJzt3VGIXOUZxvHnyexO1t2oqa0tkqRG\nqQSkUCMhxQaEJm2JVWwLvUhAoVLYK0VpQbR3veyN2IsiSNQKpkobFUSsVlCxgk1NYtoaN5Y0tWQb\nbRSrSUxrzO7bi53oml27Z3fO+Wb25f+DJTuzh/O93yRPvjNnz5zXESEAOS3pdQEAmkPAgcQIOJAY\nAQcSI+BAYgQcSIyAA4kRcCAxAg4kNtDETtteGkMaaWLXM9llxpHkgmN1BmSsxTRWwfH+8+F7Ojlx\nYs7BGgn4kEb0VW9qYtczeLBdZBxJcnuw2FhT45WbmwrOzYMFX8fBRv6Jf6ooNN6Lr99faTsO0YHE\nCDiQGAEHEiPgQGIEHEiMgAOJEXAgMQIOJFYp4LY3237N9gHbtzVdFIB6zBlw2y1Jv5B0laRLJW21\nfWnThQHoXpUVfL2kAxFxMCJOSnpI0neaLQtAHaoEfIWkQ9Mej3eeA9DnqlwZP9snVmbcTN32qKRR\nSRrScJdlAahDlRV8XNKqaY9XSjp85kYRcXdErIuIdYNaWld9ALpQJeAvSbrE9kW225K2SHqs2bIA\n1GHOQ/SIOGX7RklPSWpJujci9jVeGYCuVfp0ekQ8IemJhmsBUDOuZAMSI+BAYgQcSIyAA4kRcCAx\nAg4kRsCBxAg4kFgjbRg8tFStL61pYtczxGC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MR1/W4rFpE\nxJuSDtle03lqk6RFfVK00m2TmxQRp2zfKOkpSS1J90bEvh6XVYcNkq6X9BfbezvP/SQinuhhTZjb\nTZK2dxabg5Ju6HE9Xen5r8kANKcfDtEBNISAA4kRcCAxAg4kRsCBxAg4kBgBBxIj4EBi/wOZ7rNq\n5RTkXAAAAABJRU5ErkJggg==\n",
      "text/plain": [
       "<matplotlib.figure.Figure at 0x14f584bcb0f0>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "import torch\n",
    "x = torch.Tensor(range(64)).view([8, 8])\n",
    "try:\n",
    "    x = x.cuda()\n",
    "    print('Pytorch with GPU support.')\n",
    "except:\n",
    "    print('Pytorch without GPU support.')\n",
    "    \n",
    "import matplotlib.pyplot as plt\n",
    "plt.imshow(x.cpu().numpy())\n",
    "plt.show()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.6.1"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
